package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.hr.example.UserRegisterCensorExample.E_AUDIT_STATUS;
import static org.jsola.hr.example.UserRegisterCensorExample.E_CITY_NAME;
import static org.jsola.hr.example.UserRegisterCensorExample.E_COMPANY_NAME;
import static org.jsola.hr.example.UserRegisterCensorExample.E_DENIAL_REASON;
import static org.jsola.hr.example.UserRegisterCensorExample.E_EMAIL;
import static org.jsola.hr.example.UserRegisterCensorExample.E_GENDER;
import static org.jsola.hr.example.UserRegisterCensorExample.E_LEAVE_MESSAGE;
import static org.jsola.hr.example.UserRegisterCensorExample.E_NAME;
import static org.jsola.hr.example.UserRegisterCensorExample.E_PHONE;
import static org.jsola.hr.example.UserRegisterCensorExample.E_REGISTER_REASON;
import static org.jsola.hr.example.UserRegisterCensorExample.M_CITY_NAME_MAX;
import static org.jsola.hr.example.UserRegisterCensorExample.M_COMPANY_NAME_MAX;
import static org.jsola.hr.example.UserRegisterCensorExample.M_DENIAL_REASON_MAX;
import static org.jsola.hr.example.UserRegisterCensorExample.M_EMAIL_MAX;
import static org.jsola.hr.example.UserRegisterCensorExample.M_LEAVE_MESSAGE_MAX;
import static org.jsola.hr.example.UserRegisterCensorExample.M_NAME_MAX;
import static org.jsola.hr.example.UserRegisterCensorExample.M_NAME_NOT_NULL;
import static org.jsola.hr.example.UserRegisterCensorExample.M_PHONE_MAX;
import static org.jsola.hr.example.UserRegisterCensorExample.M_PHONE_NOT_NULL;
import static org.jsola.hr.example.UserRegisterCensorExample.N_AUDIT_STATUS;
import static org.jsola.hr.example.UserRegisterCensorExample.N_CITY_NAME;
import static org.jsola.hr.example.UserRegisterCensorExample.N_COMPANY_NAME;
import static org.jsola.hr.example.UserRegisterCensorExample.N_DENIAL_REASON;
import static org.jsola.hr.example.UserRegisterCensorExample.N_EMAIL;
import static org.jsola.hr.example.UserRegisterCensorExample.N_GENDER;
import static org.jsola.hr.example.UserRegisterCensorExample.N_LEAVE_MESSAGE;
import static org.jsola.hr.example.UserRegisterCensorExample.N_NAME;
import static org.jsola.hr.example.UserRegisterCensorExample.N_PHONE;
import static org.jsola.hr.example.UserRegisterCensorExample.N_REGISTER_REASON;

/**
 * 注册审核表
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【注册审核表】的参数")
@Data
public class UserRegisterCensorAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_CITY_NAME, example = E_CITY_NAME)
    @Length(max = 200, message = M_CITY_NAME_MAX)
    private String cityName;

    @ApiModelProperty(notes = N_NAME, example = E_NAME, required = true)
    @NotNull(message = M_NAME_NOT_NULL)
    @Length(max = 50, message = M_NAME_MAX)
    private String name;

    @ApiModelProperty(notes = N_GENDER, example = E_GENDER)
    private Integer gender;

    @ApiModelProperty(notes = N_COMPANY_NAME, example = E_COMPANY_NAME)
    @Length(max = 100, message = M_COMPANY_NAME_MAX)
    private String companyName;

    @ApiModelProperty(notes = N_PHONE, example = E_PHONE, required = true)
    @NotNull(message = M_PHONE_NOT_NULL)
    @Length(max = 11, message = M_PHONE_MAX)
    private String phone;

    @ApiModelProperty(notes = N_EMAIL, example = E_EMAIL)
    @Length(max = 64, message = M_EMAIL_MAX)
    private String email;

    @ApiModelProperty(notes = N_LEAVE_MESSAGE, example = E_LEAVE_MESSAGE)
    @Length(max = 500, message = M_LEAVE_MESSAGE_MAX)
    private String leaveMessage;

    @ApiModelProperty(notes = N_REGISTER_REASON, example = E_REGISTER_REASON)
    private Integer registerReason;

    @ApiModelProperty(notes = N_AUDIT_STATUS, example = E_AUDIT_STATUS)
    private Integer auditStatus;

    @ApiModelProperty(notes = N_DENIAL_REASON, example = E_DENIAL_REASON)
    @Length(max = 100, message = M_DENIAL_REASON_MAX)
    private String denialReason;


}

